home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / IBPalettes / WW3DKit / WWRenderWrangler.m < prev    next >
Encoding:
Text File  |  1995-03-22  |  580 b   |  42 lines

  1. // copyright 1993 Michael B. Johnson; some portions copyright 1994, MIT
  2. // see COPYRIGHT for reuse legalities
  3. //
  4.  
  5.  
  6. #import "WWRenderWrangler.h"
  7.  
  8. @implementation WWRenderWrangler
  9.  
  10. - init
  11. {
  12.   [super init];
  13.   cmd = NULL;
  14.   boss = nil;
  15.  
  16.   return self;
  17. }
  18.  
  19. - setCmd:(const char *)newCmd
  20. {
  21.   cmd = NXCopyStringBuffer(newCmd);
  22.   return self;
  23. }
  24.  
  25. - setBoss:newBoss { boss = newBoss; return self; }
  26.  
  27.  
  28. - renderSelf
  29. {
  30.    // the assumption is that we're running off in our own thread.
  31.    if (cmd)
  32.    {  system(cmd);
  33.    }
  34.    // tell the boss we're done.
  35.    // [boss ];
  36.  
  37.    return self;
  38. }
  39.  
  40.  
  41. @end
  42.